package com.zjitc.service.imp;

import com.zjitc.dao.OrderDao;
import com.zjitc.model.Order;
import com.zjitc.model.Orderitem;
import com.zjitc.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/29 13:44
 * @description:
 */
@Service
public class OrderSerceImp implements OrderService {
  @Autowired
  private  OrderDao orderDao;


  @Override
  public void addOrder(Order order) {
    orderDao.addOrder(order);
  }

  @Override
  public List<Orderitem> findOrderitem() {
   return  orderDao.findOrderitem();
  }

  @Override
  public void remover(Integer itemid) {
     orderDao.remover(itemid);
  }
}
